package jdbc;

import javafx.scene.control.SplitPane;

import java.sql.*;

/**
 * Created by Administrator on 2017/9/11.
 */
public class InsertUser {
    public static void main(String[] args) throws ClassNotFoundException, SQLException {
        //加载驱动

         Connection conn =  ConnectionUtils.getConnection();

         //获得statement
        Statement statement=conn.createStatement();//statement 作用是执行
         //执行sql （表中插入一条记录）
        String sql ="insert into myname values (7,7,7,7,7)";
               //更新数据
        statement.executeUpdate(sql);
    }
}
